<!--{eval $_TPL['titles'] = array($mtag['tagname'], $mtag['title'], '讨论区');}-->
<!--{template header}-->
<!--{template mytag}-->
<div class="top_menu">
	<ul>
		<li><a href="space.php?do=mtag&tagid=$mtag[tagid]"><span>首页</span></a></li>
		<li><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=list" $actives[list]><span>讨论区</span></a></li>
		<li><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=digest" $actives[digest]><span>精华区</span></a></li>
		<!--{if $eventnum}-->
		<li><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=event" $actives[event]><span>群组活动</span></a></li>
		<!--{/if}-->
		<li><a href="space.php?do=mtag&tagid=$mtag[tagid]&view=member" $actives[member]><span>成员列表</span></a></li>
		<!--{if empty($mtag['ismember']) && $mtag['joinperm'] < 2}-->
		<li><a href="cp.php?ac=mtag&op=join&tagid=$mtag[tagid]" id="mtag_join_$mtag[tagid]" onclick="ajaxmenu(event, this.id)">加入该群组</a></li>	
		<!--{elseif $mtag['allowpost']}-->
		<li><a href="cp.php?ac=thread&tagid=$mtag[tagid]">发起新话题</a></li>
		<!--{/if}-->
	</ul>
</div>
<div class="title_mt">
<h2 class="floatleft">
	<img src="image/app/mtag.gif"><a href="space.php?do=mtag&id=$mtag[fieldid]">$mtag[title]</a> -
	<a href="space.php?do=mtag&tagid=$mtag[tagid]">$mtag[tagname]</a>
</h2>
<div class="searchbar floatright">
<form method="get" action="space.php">
	<input name="searchkey" value="" size="15" class="t_input" type="text">
	<input name="searchsubmit" value="搜索话题" class="submit" type="submit">
	<input type="hidden" name="searchmode" value="1" />
	<input type="hidden" name="tagid" value="$mtag[tagid]" />
	<input type="hidden" name="do" value="mtag" />
	<input type="hidden" name="view" value="$_GET[view]" />
</form>
</div>
<div class="clear"></div>
</div>
<!--{if $searchkey}-->
<div class="h_status_mt">以下是搜索话题 <span style="color:red;font-weight:bold;">$searchkey</span> 结果列表</div>
<!--{/if}-->

<!--{if $list}-->
<div class="topic_list">
	<table cellspacing="0" cellpadding="0">
		<tbody>
			<!--{loop $list $key $value}-->
				<!--{eval $magicegg = ""}-->							
				<!--{eval if($value[magicegg]) for($i=0; $i<$value[magicegg]; $i++) $magicegg .= '<img src="image/magic/egg/'.mt_rand(1,6).'.gif" />';}-->
			<tr>
				<td width="48px"><!--{avatar($space[uid],smil)}--></td>
				<td class="subject">
				<!--{if $value[displayorder]}--> [顶] <!--{/if}-->
				<!--{if $value[digest]}--> [精] <!--{/if}-->
				<!--{if $value[eventid]}--> [活] <!--{/if}-->
				$magicegg
				<a href="space.php?uid=$value[uid]&do=thread&id=$value[tid]" <!--{if $value[magiccolor]}--> class="magiccolor$value[magiccolor]"<!--{/if}-->>$value[subject]</a><br/><a href="space.php?uid=$value[uid]" title="{$_SN[$value[uid]]}" style="color:#ff89a7;">{$_SN[$value[uid]]}</a>
				<!--{if $value[hot]}-->
				<br><span class="gray">$value[hot] 人推荐</span>
				<!--{/if}-->
				</td>
				<td class="last"><span class="last_t">$value[viewnum]</span><div><!--{if !$mtag}-->[<a href="space.php?do=mtag&tagid=$value[tagid]">$value[tagname]</a>]<!--{/if}--> <a href="space.php?uid=$value[lastauthorid]" title="{$_SN[$value[lastauthorid]]}">{$_SN[$value[lastauthorid]]}</a> <!--{date('m-d H:i',$value[lastpost],1)}--></div></td>
			</tr>
			<!--{/loop}-->
		</tbody>
	</table>
</div>	
<div class="page">$multi</div>
<!--{else}-->
<div class="c_form">还没有相关话题。</div>
<!--{/if}-->
</div>
</div>
<!--{template footer}-->
